<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Picture-Manager: TranspShapeFactory Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Picture-Manager
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_transp_shape_factory.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_transp_shape_factory-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">TranspShapeFactory Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implements the interface <a class="el" href="class_i_shape_factory.html" title="Interface for Factories that create concrete Shapes.">IShapeFactory</a>.  
 <a href="class_transp_shape_factory.html#details">More...</a></p>

<p><code>#include &lt;TranspShapeFactory.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TranspShapeFactory:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_transp_shape_factory.png" usemap="#TranspShapeFactory_map" alt=""/>
  <map id="TranspShapeFactory_map" name="TranspShapeFactory_map">
<area href="class_singleton_base.html" alt="SingletonBase&lt; TranspShapeFactory &gt;" shape="rect" coords="0,56,235,80"/>
<area href="class_i_shape_factory.html" title="Interface for Factories that create concrete Shapes." alt="IShapeFactory" shape="rect" coords="245,56,480,80"/>
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,235,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a72dbff8cdb8616894433c18db852148a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shape.html">Shape</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transp_shape_factory.html#a72dbff8cdb8616894433c18db852148a">createCircle</a> (<a class="el" href="struct_t_position.html">TPosition</a> const &amp;pos, float const &amp;radius, std::string const &amp;color)</td></tr>
<tr class="memdesc:a72dbff8cdb8616894433c18db852148a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a transparent circle.  <a href="#a72dbff8cdb8616894433c18db852148a"></a><br/></td></tr>
<tr class="separator:a72dbff8cdb8616894433c18db852148a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d1be857e8bbd05558027785501b06fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shape.html">Shape</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transp_shape_factory.html#a3d1be857e8bbd05558027785501b06fb">createRectangle</a> (<a class="el" href="struct_t_position.html">TPosition</a> const &amp;pos, <a class="el" href="struct_t_size.html">TSize</a> const &amp;size, std::string const &amp;color)</td></tr>
<tr class="memdesc:a3d1be857e8bbd05558027785501b06fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a transparent <a class="el" href="class_rectangle.html" title="Describes a Rectangle (holds its dimensions and gets position from Shape)">Rectangle</a>.  <a href="#a3d1be857e8bbd05558027785501b06fb"></a><br/></td></tr>
<tr class="separator:a3d1be857e8bbd05558027785501b06fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a5844ee927cd5f11859cd0c7a667190ba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5844ee927cd5f11859cd0c7a667190ba"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SingletonBase&lt; TranspShapeFactory &gt;</b></td></tr>
<tr class="separator:a5844ee927cd5f11859cd0c7a667190ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_singleton_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_singleton_base')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_singleton_base.html">SingletonBase&lt; TranspShapeFactory &gt;</a></td></tr>
<tr class="memitem:a6cef22134c9f77c521c2f21c1c41c98b inherit pub_static_methods_class_singleton_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_transp_shape_factory.html">TranspShapeFactory</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton_base.html#a6cef22134c9f77c521c2f21c1c41c98b">getInstance</a> ()</td></tr>
<tr class="memdesc:a6cef22134c9f77c521c2f21c1c41c98b inherit pub_static_methods_class_singleton_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an Instance of the class TType.  <a href="#a6cef22134c9f77c521c2f21c1c41c98b"></a><br/></td></tr>
<tr class="separator:a6cef22134c9f77c521c2f21c1c41c98b inherit pub_static_methods_class_singleton_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_singleton_base"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_singleton_base')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_singleton_base.html">SingletonBase&lt; TranspShapeFactory &gt;</a></td></tr>
<tr class="memitem:a4a676de65f9f284c8affafd8d6c9502b inherit pro_methods_class_singleton_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton_base.html#a4a676de65f9f284c8affafd8d6c9502b">SingletonBase</a> ()</td></tr>
<tr class="memdesc:a4a676de65f9f284c8affafd8d6c9502b inherit pro_methods_class_singleton_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor of Singletonbase.  <a href="#a4a676de65f9f284c8affafd8d6c9502b"></a><br/></td></tr>
<tr class="separator:a4a676de65f9f284c8affafd8d6c9502b inherit pro_methods_class_singleton_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implements the interface <a class="el" href="class_i_shape_factory.html" title="Interface for Factories that create concrete Shapes.">IShapeFactory</a>. </p>
<p>The class <a class="el" href="class_transp_shape_factory.html" title="Implements the interface IShapeFactory.">TranspShapeFactory</a> implements interface functions createCircle and createRectangle. Results are transparent shapes. <a class="el" href="class_transp_shape_factory.html" title="Implements the interface IShapeFactory.">TranspShapeFactory</a> creates transparent shapes. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a72dbff8cdb8616894433c18db852148a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shape.html">Shape</a> * TranspShapeFactory::createCircle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_position.html">TPosition</a> const &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float const &amp;&#160;</td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a transparent circle. </p>
<p>createCircle creates a new object of class <a class="el" href="class_transp_circle.html" title="Describes a transparent circle.">TranspCircle</a> </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos</td><td>The position of the circle on a picture. </td></tr>
    <tr><td class="paramname">radius</td><td>The radius of a circle. </td></tr>
    <tr><td class="paramname">color</td><td>The color a circle has. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Shape* returns the newly created shape </dd></dl>

<p>Implements <a class="el" href="class_i_shape_factory.html#a6ec4f6670cdd8514f0cfaba93bc93604">IShapeFactory</a>.</p>

</div>
</div>
<a class="anchor" id="a3d1be857e8bbd05558027785501b06fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shape.html">Shape</a> * TranspShapeFactory::createRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_position.html">TPosition</a> const &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_t_size.html">TSize</a> const &amp;&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a transparent <a class="el" href="class_rectangle.html" title="Describes a Rectangle (holds its dimensions and gets position from Shape)">Rectangle</a>. </p>
<p>createRectangle creates a new object of class <a class="el" href="class_transp_rectangle.html" title="Describes a transparent rectangle.">TranspRectangle</a> </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos</td><td>The position of the rectangle on a picture. </td></tr>
    <tr><td class="paramname">size</td><td>The dimensions of a rectangle. </td></tr>
    <tr><td class="paramname">color</td><td>The color a rectangle has. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Shape* returns the newly created shape </dd></dl>

<p>Implements <a class="el" href="class_i_shape_factory.html#a342c6d75d21173b13345f5e48c23af83">IShapeFactory</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_transp_shape_factory.html">TranspShapeFactory</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
